﻿#pragma once
#include <QObject>
#include <QObject>
#include <QToolButton>
#include<QWidgetAction>
#include<QListWidget>
#include<QMenu>
#include<QDebug>
#include<QPushButton>
#include<QEvent>
#include<QLineEdit>
#include<QTableWidget>
#include<memory>
#include "itemWidget.hpp"

class templateItemWidget :public QWidgetAction
{
	Q_OBJECT
public:
	templateItemWidget(itemWidget*item,QWidget* parent = nullptr);
protected:
	QWidget* createWidget(QWidget* parent);
	bool eventFilter(QObject* obj, QEvent* event);
private:
	itemWidget *m_item;
	QWidget* m_widget;
private:
};